<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Class template wchannel_logger_mt</title>
<link rel="stylesheet" href="../../../../../../../doc/src/boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
<link rel="home" href="../../../index.html" title="Chapter 1. Boost.Log v2">
<link rel="up" href="../../../logging_sources.html#header.boost.log.sources.channel_logger_hpp" title="Header &lt;boost/log/sources/channel_logger.hpp&gt;">
<link rel="prev" href="wchannel_logger.html" title="Class template wchannel_logger">
<link rel="next" href="basic_exception_h_idm30688.html" title="Class template basic_exception_handler_logger">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr><td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../../boost.png"></td></tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="wchannel_logger.html"><img src="../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../../../logging_sources.html#header.boost.log.sources.channel_logger_hpp"><img src="../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="basic_exception_h_idm30688.html"><img src="../../../../../../../doc/src/images/next.png" alt="Next"></a>
</div>
<div class="refentry">
<a name="boost.log.sources.wchannel_logger_mt"></a><div class="titlepage"></div>
<div class="refnamediv">
<h2><span class="refentrytitle">Class template wchannel_logger_mt</span></h2>
<p>boost::log::sources::wchannel_logger_mt — Wide-char thread-safe logger. Functionally equivalent to <code class="computeroutput"><a class="link" href="basic_channel_logger.html" title="Class template basic_channel_logger">basic_channel_logger</a></code>. </p>
</div>
<h2 xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv-title">Synopsis</h2>
<div xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv"><pre class="synopsis"><span class="comment">// In header: &lt;<a class="link" href="../../../logging_sources.html#header.boost.log.sources.channel_logger_hpp" title="Header &lt;boost/log/sources/channel_logger.hpp&gt;">boost/log/sources/channel_logger.hpp</a>&gt;

</span><span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> ChannelT <span class="special">=</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">wstring</span><span class="special">&gt;</span> 
<span class="keyword">class</span> <a class="link" href="wchannel_logger_mt.html" title="Class template wchannel_logger_mt">wchannel_logger_mt</a> <span class="special">:</span> <span class="keyword">public</span> basic_composite_logger&lt; wchar_t, wchannel_logger&lt; ChannelT &gt;, multi_thread_model&lt; implementation_defined &gt;, features&lt; channel&lt; ChannelT &gt; &gt; &gt;
<span class="special">{</span>
<span class="keyword">public</span><span class="special">:</span>
  <span class="comment">// <a class="link" href="wchannel_logger_mt.html#boost.log.sources.wchannel_logger_mtconstruct-copy-destruct">construct/copy/destruct</a></span>
  <a class="link" href="wchannel_logger_mt.html#idm30647-bb"><span class="identifier">wchannel_logger_mt</span></a><span class="special">(</span><span class="special">)</span><span class="special">;</span>
  <a class="link" href="wchannel_logger_mt.html#idm30650-bb"><span class="identifier">wchannel_logger_mt</span></a><span class="special">(</span><a class="link" href="wchannel_logger_mt.html" title="Class template wchannel_logger_mt">wchannel_logger_mt</a> <span class="keyword">const</span> <span class="special">&amp;</span><span class="special">)</span><span class="special">;</span>
  <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span><span class="special">...</span> ArgsT<span class="special">&gt;</span> <span class="keyword">explicit</span> <a class="link" href="wchannel_logger_mt.html#idm30656-bb"><span class="identifier">wchannel_logger_mt</span></a><span class="special">(</span><span class="identifier">ArgsT</span><span class="special">...</span> <span class="keyword">const</span> <span class="special">&amp;</span><span class="special">)</span><span class="special">;</span>
  <span class="keyword">explicit</span> <a class="link" href="wchannel_logger_mt.html#idm30664-bb"><span class="identifier">wchannel_logger_mt</span></a><span class="special">(</span><span class="identifier">ChannelT</span> <span class="keyword">const</span> <span class="special">&amp;</span><span class="special">)</span><span class="special">;</span>
  <a class="link" href="wchannel_logger_mt.html" title="Class template wchannel_logger_mt">wchannel_logger_mt</a> <span class="special">&amp;</span> <a class="link" href="wchannel_logger_mt.html#idm30672-bb"><span class="keyword">operator</span><span class="special">=</span></a><span class="special">(</span><a class="link" href="wchannel_logger_mt.html" title="Class template wchannel_logger_mt">wchannel_logger_mt</a> <span class="keyword">const</span> <span class="special">&amp;</span><span class="special">)</span><span class="special">;</span>
<span class="special">}</span><span class="special">;</span></pre></div>
<div class="refsect1">
<a name="idm57407"></a><h2>Description</h2>
<p>See <code class="computeroutput">channel</code> class template for a more detailed description </p>
<div class="refsect2">
<a name="idm57411"></a><h3>
<a name="boost.log.sources.wchannel_logger_mtconstruct-copy-destruct"></a><code class="computeroutput">wchannel_logger_mt</code> 
        public
       construct/copy/destruct</h3>
<div class="orderedlist"><ol class="orderedlist" type="1">
<li class="listitem">
<pre class="literallayout"><a name="idm30647-bb"></a><span class="identifier">wchannel_logger_mt</span><span class="special">(</span><span class="special">)</span><span class="special">;</span></pre>
<p>Default constructor </p>
</li>
<li class="listitem">
<pre class="literallayout"><a name="idm30650-bb"></a><span class="identifier">wchannel_logger_mt</span><span class="special">(</span><a class="link" href="wchannel_logger_mt.html" title="Class template wchannel_logger_mt">wchannel_logger_mt</a> <span class="keyword">const</span> <span class="special">&amp;</span> that<span class="special">)</span><span class="special">;</span></pre>
<p>Copy constructor </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span><span class="special">...</span> ArgsT<span class="special">&gt;</span> <span class="keyword">explicit</span> <a name="idm30656-bb"></a><span class="identifier">wchannel_logger_mt</span><span class="special">(</span><span class="identifier">ArgsT</span><span class="special">...</span> <span class="keyword">const</span> <span class="special">&amp;</span> args<span class="special">)</span><span class="special">;</span></pre>
<p>Constructor with named arguments </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">explicit</span> <a name="idm30664-bb"></a><span class="identifier">wchannel_logger_mt</span><span class="special">(</span><span class="identifier">ChannelT</span> <span class="keyword">const</span> <span class="special">&amp;</span> channel<span class="special">)</span><span class="special">;</span></pre>
<p>The constructor creates the logger with the specified channel name</p>
<p>
</p>
<div class="variablelist"><table border="0" class="variablelist compact">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody><tr>
<td><p><span class="term">Parameters:</span></p></td>
<td><div class="variablelist"><table border="0" class="variablelist compact">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody><tr>
<td><p><span class="term"><code class="computeroutput">channel</code></span></p></td>
<td><p>The channel name </p></td>
</tr></tbody>
</table></div></td>
</tr></tbody>
</table></div>
</li>
<li class="listitem">
<pre class="literallayout"><a class="link" href="wchannel_logger_mt.html" title="Class template wchannel_logger_mt">wchannel_logger_mt</a> <span class="special">&amp;</span> <a name="idm30672-bb"></a><span class="keyword">operator</span><span class="special">=</span><span class="special">(</span><a class="link" href="wchannel_logger_mt.html" title="Class template wchannel_logger_mt">wchannel_logger_mt</a> <span class="keyword">const</span> <span class="special">&amp;</span> that<span class="special">)</span><span class="special">;</span></pre>
<p>Assignment operator</p>
<p>Swaps two loggers </p>
</li>
</ol></div>
</div>
</div>
</div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
<td align="left"></td>
<td align="right"><div class="copyright-footer">Copyright © 2007-2021 Andrey Semashev<p>
        Distributed under the Boost Software License, Version 1.0. (See accompanying
        file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>).
      </p>
</div></td>
</tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="wchannel_logger.html"><img src="../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../../../logging_sources.html#header.boost.log.sources.channel_logger_hpp"><img src="../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="basic_exception_h_idm30688.html"><img src="../../../../../../../doc/src/images/next.png" alt="Next"></a>
</div>
</body>
</html>
